#! /bin/sh

export back_up=8081

cd /opt/pucong/back-up/
echo "--------备份系统 开始启动--------------"
nohup java -jar database-backup.jar >/dev/null 2>&1 &

sys_pid=`lsof -i:$sys_port|grep "LISTEN"|awk '{print $2}'`
until [ -n "$sys_pid" ]
	do
	  sys_pid=`lsof -i:$sys_port|grep "LISTEN"|awk '{print $2}'`
	done
echo "--------备份系统 启动成功--------------:$sys_pid"

tail -f /dev/null
